package com.taru.wxhsh.mapper;

import com.taru.wxhsh.pojo.Detail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DetailMapper {
    int deleteByPrimaryKey(String detailId);

    int insert(Detail record);

    int insertSelective(Detail record);

    Detail selectByPrimaryKey(String detailId);

    int updateByPrimaryKeySelective(Detail record);

    int updateByPrimaryKey(Detail record);

    /**
     * 查询订单详情
     * @param orderid
     * @return
     */
    List<Detail> selectByOrderId(String orderid);

    /**
     * 查询购物车列表
     * @return
     */
    List<Detail> qryCartList(String uid);

    void  updateOrderByUserId(@Param("detailOrderId") String orderId,@Param("detailUserId") String userId );

}